﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCaseHome.aspx.cs" Inherits="NSATBPortal.TestCaseHome" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Display List of Test Cases</title>
</head>
<body style="font-family: Tahoma; margin: 20px 0px 0px 10px; background-color: lightgray">
    <form id="form1" runat="server">
    <div id="Header" style="font-size: large; background-color: darkblue; color: white;">
        <div style="float: left; font-size: large; background-color: darkblue; color: white; width: 100%;">
        Test Case List
        </div>
    </div>
    <div style="width: 100%; height: 100%; margin: 20px 0px 0px 0px; background-color: lightgray">
        <asp:Menu ID="ActionMenu" runat="server" BackColor="#993333" ForeColor="White" DynamicMenuItemStyle-BackColor="#993333" DynamicMenuItemStyle-ForeColor="White">
            <Items>
                <asp:MenuItem Text="List Actions" ToolTip="Click here to manipulate items" Value="List Actions">
                    <asp:MenuItem Text="Import Item" ToolTip="Import Test Case" Value="Import Item" NavigateUrl="TestCaseImport.aspx" ></asp:MenuItem>
                </asp:MenuItem>
            </Items>

        </asp:Menu>
        <div style="margin: 20px 0px 0px 0px; height: 100%;">
            <asp:GridView Font-Size="Small" ID="DefTestCaseGrid" DataKeyNames="ID" runat="server" AutoGenerateColumns="False" CellPadding="2"
                OnRowEditing="DefTestCaseGrid_RowEditing" 
                OnRowDeleting="DefTestCaseGrid_RowDeleting" 
                OnInit="DefTestCaseGrid_Init"
                >
                <Columns>
                    <asp:CommandField EditText="View" ShowEditButton="True" >
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="ID" DataField="ID" Visible="false">
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="QC ID" DataField="QCID" >
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Name" DataField="Name">
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Revision" DataField="Revision" >
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Center" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Description" DataField="Description">
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="true" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Imported" DataField="Imported Date" DataFormatString="{0:d}">
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Imported By" DataField="Imported By">
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:BoundField>
                    <asp:CommandField ShowDeleteButton="True" >
                        <HeaderStyle BackColor="#000099" BorderColor="Black" ForeColor="White" Font-Bold="true" HorizontalAlign="Left" VerticalAlign="Bottom" Wrap="false" />
                        <ItemStyle BackColor="White" BorderColor="Black" ForeColor="Black" HorizontalAlign="Left" VerticalAlign="Top" Wrap="False" />
                    </asp:CommandField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
